package cn.com.sinosoft.ares.insurance.service.constant;

/**
 * Description: 房惠险 实现
 * Author: lishangmin
 * Created: 2018-08-08 19:08
 */
public enum RoomDiscountType {

    ROOM_0102("0102","roomInsureService_0102"),

    ROOM_0819("0819","roomInsureService_0819"),

    ;

    private String riskCode;

    private String beanName;

    RoomDiscountType(String riskCode, String beanName) {
        this.riskCode = riskCode;
        this.beanName = beanName;
    }

    public static RoomDiscountType valueOfRiskCode(String riskCode){
        return RoomDiscountType.valueOf("ROOM_" + riskCode);
    }

    public String getRiskCode() {
        return riskCode;
    }

    public String getBeanName() {
        return beanName;
    }

    @Override
    public String toString() {
        return "RoomDiscountType{" +
                "riskCode='" + riskCode + '\'' +
                ", beanName='" + beanName + '\'' +
                '}';
    }
}
